const mongoose = require("mongoose")
const Schema = mongoose.Schema

// Create Schema
const PackageSchema = new Schema({
  // 套餐类型
  models: {
    type: String,
    required: true
  },
  // 套餐价格
  price: {
    type: String,
    required: true
  },
  // 套餐说明
  desc: {
    type: String,
    required: true
  },
// 开始配送时间
  startTime:{
    type:String,
    require:true
  },
  //停止配送时间
   endTime:{
    type:String,
    require:true
  }
})

module.exports = Package = mongoose.model("package", PackageSchema);